package com.kkb.kkbcommon.exception;

import com.kkb.kkbcommon.api.IErrorCode;

/**
 * 断言处理类，用于抛出各种API异常
 * @author syq
 * @date 2021/8/5
 */
public class Asserts {
    public static void fail(String message) {
        throw new com.kkb.kkbcommon.exception.ApiException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new com.kkb.kkbcommon.exception.ApiException(errorCode);
    }
}
